home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/csh
-
- if $#argv == 0 then
- echo " Usage: getit filename"
- echo " GetIt v1.0 David C. Johnson (johnson@wrs.com)"
- exit
- else
-
- set INPUT = $argv[1]
- set SUPPORT_FILES_DIR = $HOME/bin
- set NEW_DIR_NAME = "new-umich-files.`date +%h-%d-%T`"
-
- mkdir $NEW_DIR_NAME
- echo "/" | cat $INPUT - > $NEW_DIR_NAME/mac.temp.temp.temp # isn't that cute :-)
- perl $SUPPORT_FILES_DIR/prnumich $NEW_DIR_NAME/mac.temp.temp.temp > $NEW_DIR_NAME/umich.files
- cd $NEW_DIR_NAME
- rm mac.temp.temp.temp
- echo "bye" | cat umich.files - > mac.temp.temp.temp
- rm umich.files
- mv mac.temp.temp.temp umich.files
- sh $SUPPORT_FILES_DIR/getumich
-
- rm mac.archive.umich.edu.* # comment out to save log transcript files
- rm umich.files # comment out to save parsed ftp input file
- #rm ../$INPUT # comment out to save original input file
-
- exit
- endif
- exit
-